package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.GoodsInfo;
import com.cykj.v_m_sprintboot.bean.TbReturn;
import com.cykj.v_m_sprintboot.bean.TbWarehouseListInf;
import com.cykj.v_m_sprintboot.mapper.TbWarehouseListInfMapper;
import com.cykj.v_m_sprintboot.service.TbWarehouseListInfService;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbWarehouseListInfServiceImpl implements TbWarehouseListInfService {
    @Autowired
    private TbWarehouseListInfMapper tbWarehouseListInfMapper;

    @Override
    public List<String> goodsName(TbWarehouseListInf tbWarehouseListInf) {
        return tbWarehouseListInfMapper.goodsName(tbWarehouseListInf);
    }

    @Override
    public List<Integer> goodsNum(TbWarehouseListInf tbWarehouseListInf) {
        return tbWarehouseListInfMapper.goodsNum(tbWarehouseListInf);
    }

    @Override
    public List<GoodsInfo> goodsInfo(TbWarehouseListInf tbWarehouseListInf) {
        return tbWarehouseListInfMapper.goodsInfo(tbWarehouseListInf);
    }

    @Override
    public List<GoodsInfo> getAllGoods(TbWarehouseListInf tbWarehouseListInf) {
        return tbWarehouseListInfMapper.getAllGoods(tbWarehouseListInf);
    }

    @Override
    public boolean addReturn(TbReturn tbReturn) {
        return tbWarehouseListInfMapper.addReturn(tbReturn);
    }

    @Override
    public List<TbReturn> getReturnList(TbReturn tbReturn, RowBounds row) {
        return tbWarehouseListInfMapper.getReturnList(tbReturn,row);
    }

    @Override
    public int countReturnList(TbReturn tbReturn) {
        return tbWarehouseListInfMapper.countReturnList(tbReturn);
    }

    @Override
    public boolean delReturnList(TbReturn tbReturn) {
        return tbWarehouseListInfMapper.delReturnList(tbReturn);
    }

    @Override
    public boolean updateTbWarehouseListInfNum(TbReturn tbReturn) {
        return tbWarehouseListInfMapper.updateTbWarehouseListInfNum(tbReturn);
    }

    @Override
    public double countTbWarehouseListInf(TbReturn tbReturn) {
        return tbWarehouseListInfMapper.countTbWarehouseListInf(tbReturn);
    }

}
